home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / DirectSound / Play3DSound / readme.txt < prev    next >
Text File  |  2001-10-10  |  2KB  |  51 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: Play3DSound Sample
  4. // 
  5. // Copyright (c) 1999 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   The Play3DSound sample shows how to create a 3-D sound buffer and 
  13.   manipulate its properties. It is similar to the 3DAudio sample but does not 
  14.   use an audiopath.
  15.  
  16. Path
  17. ====
  18.   Source: DXSDK\Samples\Multimedia\DSound\Play3DSound
  19.  
  20.   Executable: DXSDK\Samples\Multimedia\DSound\Bin
  21.  
  22. User's Guide
  23. ============
  24.   Click Sound... and load a wave file. Play the Buffer. The position of the 
  25.   sound source is shown as a triangle on the graph, where the x-axis is from 
  26.   left to right and the z-axis is from bottom to top. Change the range of 
  27.   movement on the two axes by holding down the mouse button and moving the mouse. 
  28.  
  29.   The listener is located at the center of the graph, and has its default 
  30.   orientation, looking along the positive z-axis; that is, toward the top of 
  31.   the screen. The sound source can move to the listener's left and right and to 
  32.   the listener's front and rear, but does not move above and below the listener.
  33.  
  34. Programming Notes
  35. =================
  36.   
  37.   * To create a DirectSound3DBuffer object
  38.         1. Fill out a DSBUFFERDESC struct with 
  39.            DSBCAPS_CTRL3D and the 3D virtualization guid 
  40.         2. Call DirectSound.CreateSoundBufferFromFile passing in the DSBUFFERDESC
  41.            This will create a secondary buffer with 3D control.
  42.         3. Call DirectSoundSecondaryBuffer.Get3DBuffer to query for the 
  43.            DirectSound3DBuffer
  44.   
  45.   * Set the postion of the 3D buffer
  46.         1. Call DirectSound3DBuffer.SetPosition
  47.   
  48.   
  49.              
  50.            
  51.